import {
	apiapi
} from "./request.js"

export const getFlowTree = (data) => apiapi(
	'apim.php?_=FlowType::three_list',
	'POST',
	data,
);
export const getModelId = (data) => apiapi(
	'apim.php?_=Menu::get_model',
	'POST',
	data,
);
export const getCompletedJson = (data) => apiapi(
	'apim.php?_=Model::get_completed_json',
	'POST',
	data,
);
export const getListFlow = (data) => apiapi(
	'apim.php?_=Flow::index',
	'POST',
	data,
);
export const addApply = (data) => apiapi(
	'apim.php?_=FlowLog::add',
	'POST',
	data,
);
export const doAdd = (data) => apiapi(
	'apim.php?_=DataAccess::add',
	'POST',
	data,
);
export const getApply = (data) => apiapi(
	'apim.php?_=FlowLog::index',
	'POST',
	data,
);
export const getNodeLog = (data) => apiapi(
	'apim.php?_=FlowLog::node_log',
	'POST',
	data,
);
export const updataApply = (data) => apiapi(
	'apim.php?_=FlowLog::edit',
	'POST',
	data,
);
export const getNodeIndex = (data) => apiapi(
	'apim.php?_=Flow::node_index',
	'POST',
	data,
);
export const startApply = (data) => apiapi(
	'apim.php?_=FlowLog::start',
	'POST',
	data,
);
export const agreeApply = (data) => apiapi(
	'apim.php?_=FlowLog::agree',
	'POST',
	data,
);
export const refuseApply = (data) => apiapi(
	'apim.php?_=FlowLog::refuse',
	'POST',
	data,
);
export const backApply = (data) => apiapi(
	'apim.php?_=FlowLog::back',
	'POST',
	data,
);

